﻿<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="CityFly" xmlns:page="urn:page">
  <xsl:output method="html" encoding="utf-8"/>
  <xsl:param name="rowcount"/>
  <!--数据库总记录数-->
  <xsl:param name="maxrow"/>
  <!--每页记录数-->
  <xsl:param name="curpage"/>
  <!--当前页码-->
  <xsl:param name="param"/>
  <!--引入 param 参数-->
  <xsl:param name="templatename"/>
  <!--Label.xml 模块名称-->
  <xsl:param name="orderby"/>
  <!--Label.xml orderby 参数-->
  <xsl:param name="where"/>
  <!--Label.xml where 参数-->
  <xsl:param name="runtime"/>
  <!--运行时长-->
  <msxsl:script language="javascript" implements-prefix="user">function numOptions(fS,fE,fV){
    var str ='';
    for(var i=int(fS);i&lt;=int(fE);i++){
    str=str+"&lt;option"
    if(i==fV){str=str+" selected='1' "}
    var val ='';
    for(var j=i.toString().length;j&lt;fS.toString().length;j++){
    val = '0' + val;
    }
    str=str+" value='"+val+i+"'&gt;"+val+i+"&lt;/option&gt;";
    }
    return str;
    }
    function InputsList(inputName,num,values){
    var s='';
    for(var i=0;i&lt;num;i++){
    s=s+'&lt;input style="float:left;margin:2px;" id="F_BizProcuts" maxlength="20" class="w100" value="'+StrSplit(values,',',i)+'" name="F_BizProcuts" /&gt;';
    }
    return s;
    }
    function options(text,values,spChar){
    var s='';
    if(values=='')return '';
    var num = values.split(spChar).length;
    if(num==0)return '';
    for(var i=0;i&lt;num;i++){
    s=s+'&lt;option value="'+StrSplit(values,spChar,i)+'"&gt;'+StrSplit(text,spChar,i)+'&lt;/&gt;';
    }
    return s;
    }
    function rtrim(text){
    return text.replace(/(&nbsp;$)/g, ''); 
    }
    function StrSplit(Str,splitChar,n){
    if(Str.length=0){return ''}
    var a=Str.replace(/'/g,"").split(splitChar);
    if(n&lt;a.length){
    if(a[n].length==0)return '';
    return a[n];
    }
    return '';
    }</msxsl:script>
  <xsl:template match="/">
    <div>
      <form id="bdform">
      <div class="miniTab">
      <ul class="tabs"><li class="current">基本资料</li><li>户型图</li><li>楼盘动态</li><li>周边及交通</li><li>相关图片</li></ul>
      </div>
      <div class="dataEdit">
        <input name="editid" type="hidden" value="{rows/row/ID}" />
        <input name="f" type="hidden" value="@新楼盘" />
        <ul class="list">
          <li>
            <div class="fl">楼盘名称</div>
            <div>
              <input name="bd_Name" type="text" class="w150" value="{rows/row/F_Name}" id="bdName" />
            </div>
          </li>
          <li>
            <div class="fl">所属区域</div>
            <div>
              <input name="RegionName" readonly="readonly" class="Select" onclick="TM.Select('地区选择',this,'myValue')">
              <xsl:attribute name="value"><xsl:value-of select="rows/row/F_RegionName"/>
              <xsl:if test="rows/row/F_RegionName='' or count(rows/row)=0">
                选择地区
              </xsl:if>
              </xsl:attribute>
              </input>
              <input name="bd_RegionCode" class="w300" type="hidden" id="myValue" value="{rows/row/F_RegionCode}" />
            </div>
          </li>
          <li>
            <div class="fl">占地面积</div>
            <div>
              <input name="bd_Square" class="w150"  type="text" value="{rows/row/F_Square}" />
            </div>
          </li>
          <li>
            <div class="fl">建筑面积</div>
            <div>
              <input name="bd_Area" class="w150"  type="text" value="{rows/row/F_Area}" />
            </div>
          </li>
          <li>
            <div class="fl">物业类别</div>
            <div>
              <select name="bd_Type" id="bd_Type">
                <xsl:value-of select="page:xLoadList('物业类别',0,string(rows/row/F_Type))" disable-output-escaping="yes"/>
              </select>
            </div>
          </li>
          <li>
            <div class="fl">建筑类别</div>
            <div>
              <input name="bd_BuildingType" class="w150"  type="text" value="{rows/row/F_BuildingType}" />
            </div>
          </li>
          <li class="w1">
            <div class="fl">项目地址</div>
            <div>
              <input name="bd_addr" class="w300"  type="text" value="{rows/row/F_Address}" id="address" />
            </div>
          </li>
          <li class="w1">
            <div class="fl">价　　格</div>
            <div>均价:
              <input name="bd_Price_Avg" type="text" class="w100" value="{rows/row/F_Price_Avg}" />
              起价:
              <input name="bd_Price" type="text" class="w100" value="{rows/row/F_Price}" />
              最高价:
              <input name="bd_Price_Max" type="text" class="w100" value="{rows/row/F_Price_Max}" />
            </div>
          </li>
          <li class="w1">
            <div class="fl">单　　位</div>
            <div>
              <input name="bd_PriceUnit" type="text" class="w150" value="{rows/row/F_PriceUnitName}" />
            </div>
          </li>
          <li class="w1">
            <div class="fl">价格描述</div>
            <div>
              <input name="bd_Price_Description" type="text" class="w300" value="{rows/row/F_Price_Description}" />
            </div>
          </li>
        </ul>
        <ul class="list">
          <li>
            <div class="fl">绿 化 率</div>
            <div>
              <input name="bd_Green_Rate" type="text" class="w150" value="{rows/row/F_Green_Rate}" />
              % </div>
          </li>
          <li>
            <div class="fl">容 积 率</div>
            <div>
              <input name="bd_Rate" type="text" class="w150" value="{rows/row/F_Rate}" />
              % </div>
          </li>
          <li>
            <div class="fl">开 发 商</div>
            <div>
              <input name="bd_Creater" type="text" class="w150" value="{rows/row/F_Creater}" />
            </div>
          </li>
          <li>
            <div class="fl">预 售 证</div>
            <div>
              <input name="bd_Creater_Lic" type="text" class="w150" value="{rows/row/F_Creater_Lic}" />
            </div>
          </li>
          <li class="w1">
            <div class="fl">楼层状况</div>
            <div>
              <input name="bd_Floor" type="text" class="w300" value="{rows/row/F_Floor}" />
            </div>
          </li>
          <li class="w1">
            <div class="fl">周围配套</div>
            <div>
              <textarea name="bd_Utilites2" rows="3" class="w550"><xsl:value-of select="user:rtrim(string(rows/row/F_Utilites))"/>&nbsp;</textarea>
            </div>
          </li>
          <li class="w1">
            <div class="fl">交通状况</div>
            <div>
              <input name="bd_Traffic" type="text" class="w300" value="{rows/row/F_Traffic}" />
            </div>
          </li>
        </ul>
        <ul class="list">
          <li>
            <div class="fl">开盘时间</div>
            <div>
              <input name="bd_OpenDate" type="text" class="w150" value="{substring(rows/row/F_OpenDate,1,10)}" />
              格式:2008-08-01 </div>
          </li>
          <li>
            <div class="fl">交房时间</div>
            <div>
              <input name="bd_IncomeDate" type="text" class="w150" value="{substring(rows/row/F_IncomeDate,1,10)}" />
              格式:2008-08-01 </div>
          </li>
          <li class="w1">
            <div class="fl">最新动态</div>
            <div>
              <textarea name="bd_Info" rows="3" class="w550"><xsl:value-of select="string(rows/row/F_Info)"/>&nbsp;</textarea>
            </div>
          </li>
        </ul>
        <ul class="list">
          <li>
            <div class="fl">售楼热线</div>
            <div>
              <input name="bd_SalePhone" type="text" class="w200" value="{rows/row/F_SalePhone}" id="phone" />
            </div>
          </li>
          <li>
            <div class="fl">联系人</div>
            <div>
              <input name="bd_SaleName" type="text" class="w200" value="{rows/row/F_SaleName}" />
            </div>
          </li>
          <li class="w1">
            <div class="fl">售楼地址</div>
            <div>
              <input name="bd_SaleAddr" type="text" class="w300" value="{rows/row/F_SaleAddress}" />
            </div>
          </li>
          <li class="w1">
            <div class="fl">楼盘网址</div>
            <div>
              <input name="bd_SaleUrl" type="text" class="w300" value="{rows/row/F_SaleUrl}" />
            </div>
          </li>
        </ul>
        <ul class="list">
          <li class="w1">
            <div class="fl">楼盘图片</div>
            <div>
              <input name="bd_Images" rows="3" class="w550" value="{rows/row/F_Images}" id="imagefile" onclick="TM.FileSelect('imagefile',this,'File Select')"/>
            </div>
          </li>
          <li class="w1">
            <div class="fl">楼盘介绍</div>
            <div>
              <textarea name="bd_Intro" rows="4" class="w550"><xsl:value-of select="user:rtrim(string(rows/row/F_Intro))"/>&nbsp;</textarea>
            </div>
          </li>
          <li class="w1">
            <div class="fl">地图位置</div>
            <div>
              <input readonly="readonly" onclick="openMap('ditu','标注楼盘地图位置',this.value);" name="bd_LatLng" class="w300" value="{string(rows/row/F_LatLng)}"/>
              </div>
          </li>
        </ul>
        <div id="ditu" style="height:400px; width:600px; display:none">&nbsp;</div>
        <ul class="list">
          <li class="w1">
            <div class="fl">户 型 图</div>
            <div><xsl:value-of select="page:xLoadList('户型图',0,rows/row/ID)" disable-output-escaping="yes"/></div>
          </li>
        </ul>
        <ul class="list">
          <li class="w1">
            <div class="fl">楼盘拼音</div>
            <div> <xsl:value-of select="rows/row/F_PingYin"/> </div>
          </li>
          <li class="w1">
            <div class="fl">更新时间</div>
            <div> <xsl:value-of select="rows/row/F_UpdateTime"/> </div>
          </li>
          <li class="w1">
            <div class="fl">更新 IP</div>
            <div><xsl:value-of select="rows/row/F_IPInfo"/></div>
          </li>
        </ul>
        </div>
      </form>
    </div>
    <div class="cmdButton">
      <input type="button" name="Submit" value="保存并返回" onclick="if(TM.saveContentCmd(this,'bdform',0)==1)TM.pList()"  class="btnD"/>
      <input type="button" name="Submit" value="取消返回" onclick="TM.closeTab();"  class="btnD"/>
    </div>
  </xsl:template>
</xsl:stylesheet>
